import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
// 重置默认样式
import '@/assets/css/reset.css'
// iconfont.css
import '@/assets/fonts/iconfont.css'
// import ElementUI from 'element-ui'
// import './styles.scss'
// 日期过滤器
import './filters'
// import './directives'
import storage from '@/utils/storage'
import './directives'

// 注册全局自定义指令
import * as directives from '@/directives'
// console.log(directives)
Object.keys(directives).forEach((key) => {
  Vue.directive(key, {
    inserted: directives[key]
  })
})

// Vue.use(ElementUI)
Vue.config.productionTip = false
Vue.prototype.$storage = storage

new Vue({
  router,
  store,
  render: (h) => h(App)
}).$mount('#app')
